package com.logistics.map.entity.model;

import com.logistics.map.entity.domain.MapRouteEdges;
import lombok.Data;

@Data
public class MapRouteEdgesRow {

    private String routeCode;

    private String clazz;

    private String isDash;

    private String isArrow;

    private String color;

    private String controlPoints;

    private String endPoint;

    private String uuid;

    private String lineWidth;

    private String label;

    private String source;

    private String startPoint;

    private String target;

    private String type;

    public MapRouteEdgesRow(){}

    public MapRouteEdgesRow(MapRouteEdges mapRouteEdges){
        this.routeCode = mapRouteEdges.getRouteCode();
        this.clazz = mapRouteEdges.getClazz();
        this.isDash = mapRouteEdges.getIsDash();
        this.isArrow = mapRouteEdges.getIsArrow();
        this.color = mapRouteEdges.getColor();
        this.controlPoints = mapRouteEdges.getControlPoints();
        this.endPoint = mapRouteEdges.getEndPoint();
        this.uuid = mapRouteEdges.getUuid();
        this.lineWidth = mapRouteEdges.getLineWidth();
        this.label = mapRouteEdges.getLabel();
        this.source = mapRouteEdges.getSource();
        this.startPoint = mapRouteEdges.getStartPoint();
        this.target = mapRouteEdges.getTarget();
        this.type = mapRouteEdges.getType();
    }

    public static MapRouteEdgesRow build(MapRouteEdges mapRouteEdges){
        return new MapRouteEdgesRow(mapRouteEdges);
    }
}
